# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=par
pkgver=1.53.0
pkgrel=1
pkgdesc="paragraph reformatter, vaguely similar to fmt, but better"
url="http://www.nicemice.net/par/"
arch="all"
license="custom"
depends="!rancid" # contains 'par' executable
subpackages="$pkgname-doc"
source="http://www.nicemice.net/par/Par-$pkgver.tar.gz"

builddir="$srcdir/Par-$pkgver"

build() {
	make -f protoMakefile
}

package() {
	install -Dm755 -D par "$pkgdir/usr/bin/par"
	install -Dm644 -D par.1 "$pkgdir/usr/share/man/man1/par.1"
	install -Dm644 -D par.doc "$pkgdir/usr/share/licenses/$pkgname/par.doc"
}

sha512sums="3f8ac57fe19ebcf427b11f4d79f2c5cc9286c1439c38a53d45bd29b9219369db2798efbd0e203ac359d59ebbdd3ead1c50ae75352a1ffc568d4d3b9ad50642b1  Par-1.53.0.tar.gz"
